package com.ddyx.rest;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ddyx.service.IDealShowService;

/**
 * @ClassName: DealShowController.java
 * @Module: 门店交易记录web模块
 * @Description: 
 * 
 * @author: QingGuan.Kong
 * @date: 2017年9月13日 上午10:17:52
 * 
 */
@Controller
@RequestMapping("/dealshow")
public class DealShowController {

	@Resource
	IDealShowService dealShowService;
	
	@RequestMapping(value="/find",method=RequestMethod.GET)
	@ResponseBody
	public String selectAll(@RequestParam(value="page",defaultValue="1")int page,
			@RequestParam(value="size",defaultValue="20")int size,
			@RequestParam(value="vipNo",defaultValue="")String vipNo, 
			@RequestParam(value="mobile",defaultValue="")String mobile, 
			@RequestParam(value="billNo",defaultValue="")String billNo, 
			@RequestParam(value="storeId",defaultValue="")String storeId){
		return dealShowService.selectAll(page, size, vipNo, mobile, billNo, storeId);
		
	}
}
